﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;
using B10.Models.Validation;

namespace B10.Models
{
    public enum GenderEnum
    {
        Male,
        Female
    }

    [MetadataType(typeof(UserProfileValidation))]
    public partial class UserProfile
    {
        [LocalizedDisplayName("Author")]
        public string DisplayName
        {
            get
            {
                if (!String.IsNullOrEmpty(RealName))
                    return RealName;
                return UserName;
            }
        }
    }
}
